import request from '@/utils/request'

// 查询员工基本信息列表
export function listRoster(query) {
  return request({
    url: '/manage/roster/list',
    method: 'get',
    params: query
  })
}
//代码修改之后的列表信息
export function listRosterInfo(query) {
  return request({
    url: '/manage/roster/listInfo',
    method: 'get',
    params: query
  })
}
// 查询员工基本信息详细
export function getRoster(id) {
  return request({
    url: '/manage/roster/' + id,
    method: 'get'
  })
}

// 新增员工基本信息
export function addRoster(data) {
  return request({
    url: '/manage/roster',
    method: 'post',
    data: data
  })
}

// 修改员工基本信息
export function updateRoster(data) {
  return request({
    url: '/manage/roster',
    method: 'put',
    data: data
  })
}

// 删除员工基本信息
export function delRoster(id) {
  return request({
    url: '/manage/roster/' + id,
    method: 'delete'
  })
}
